<html>
		<head>
			<link rel="stylesheet" href="style.css">
		</head>
	<body>
	
<?php
	include("cho.php");
	$obj = new cho();
	if(!$obj -> get_cho_id(idcho)){
		echo"error";
		echo mysql_error($obj->link);
		exit();
	}
	?>
	
	<body>
		<table>
			<tr>
				<td colspan="2" id="pageheader">
					HEALTH INFORMATION SYSTEMS
				</td>
			</tr>
			<tr>
				<td id="mainnav">
					<div class="menuitem"><a href = "cho_list.php">CHO</a></div>
					<div class="menuitem"><span class="menuitem" ><a href = "cho_add.php" target="_blank">Add to the cho table</a></span></div>
					<div class="menuitem"></div>
					<div class="menuitem"></div>
					<div class="menuitem"></div>
					<div class="menuitem"></div>
				
				</td>
				<td id="content">
					<div id="divPageMenu">
						<!--<span class="menuitem" >User accounts</span>
						<input type="text" id="txtSearch">
						<span class="menuitem">search</span>		
					</div>
					<div id="divStatus" class="status">
						Welcome to the Health Information System-->
					</div>
					<div id="divContent">
						<table class="reportTable" width="100%">
							<tr class="header" >
								<td>Cho Details</td>
								<td></td>
							</tr>
							
							
		<?php	
	
	
	$id=$_REQUEST["idcho"];
	$row = $obj->fetch();
	
	$row_counter = 0;
	
		while($row){
			echo "<table>";	
	
		if($row_counter%2==0){
			$style=" class='row1' ";
		}else{
			$style=" class='row2'  ";
		}
		
	
		
		echo "<tr $style >";
		echo "<tr>";
		echo "<td> CHO ID:</td>";
		echo "<td>" . $row["idcho"]  ."</td>";
		echo "</tr>";
		
		echo "<tr>";
		echo "<td>CHO Name:</td>";
		echo"<td>". $row["cho_name"] . "</td>";
		echo "</tr>";
		
		echo "<tr>";
		echo "<td> Pin Number:</td>";
		echo "<td>". $row["pin_number"]  ."</td>";
		echo "</tr>";

		echo "<tr>";
		echo "<td> Subdistrict_id:</td>";
		echo "<td>". $row["subdistrict_id"]  ."</td>";
		echo "</tr>";
		
		echo "</tr>";
	
	
	
	
		$row = $obj->fetch();
	
	echo"</table>";
	}
?>
	
	</body>
			
</html>